package com.cat3studios.tile.tiles;

import java.util.HashMap;

public class TileRegistry {
	HashMap<String, Tile> tiles;
	TileRegistry instance;
	private TileRegistry(){
		tiles = new HashMap<String, Tile>();
	}
	public void registerTile(String name, Tile tile){
		tiles.put(name, tile);
	}
	TileRegistry getInstance(){
		if(instance == null) instance = new TileRegistry();
		return instance;
	}
}